-- GENERATED SPELL FOR [Coral Shark] --


function spell0_5434(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5434', 576, 1)
end

function Sorts_5434(pUnit, Event)
local choix_sorts_5434 = math.random(0, 0)
if choix_sorts_5434 == 0 then
pUnit:RegisterEvent('spell0_5434', 1, 1)
end
end

function mob5434_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5434', math.random(1500, 3000), 1)
end

function mob5434_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5434_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5434_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5434, 1, 'mob5434_Action')
RegisterUnitEvent(5434, 2, 'mob5434_Leave')
RegisterUnitEvent(5434, 3, 'mob5434_Kill')
RegisterUnitEvent(5434, 4, 'mob5434_Die')
